namespace KL.Standard.Core.Extensions;

/// <summary>
/// 字典类型扩张
/// </summary>
public static class DictionaryExtensions
{
    public static bool IsEmpty(this Dictionary<string, string> dict, string key)
    {
        if (!dict.ContainsKey(key))
            return true;
        if (string.IsNullOrEmpty(dict[key]))
            return true;
        return false;
    }
}